<?php

class Damages_Methods_Data_EstimatedBudget_New extends Damages_Methods_Data_EstimatedBudget {

  public function __construct($obj) {
    $this->id = $obj->id;
    $this->value = (float) $obj->value;
    $this->carValue = (float) $obj->carValue;
    $this->deductionValue = (float)$obj->deductionValue;
    $this->isDefault = $obj->isDefault;
    $this->discountFlag = $obj->discountFlag;
    $this->attachment = new Damages_Methods_Data_Attachment_Simple($obj->attachment);
  }

}